package com.tbycoder.tby.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tby
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="IposLogin对象", description="")
public class IposLogin extends Model<IposLogin> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号")
    private String userId;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "身份id")
    private String identityId;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "姓名")
    private String name;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
